package com.homestay.dao;

import com.homestay.beans.Home;

import java.util.Collection;
import java.util.List;

public interface HomeDao {
    List<Home> query(String h_type, String state, String num);

    int add(Home home);

    int deleteById(String id);

    Home queryById(String id);

    int update(Home home);

    List<Home> queryByNum(int homeNum);

    int updateStateById(String homeId,String state);

}
